#pragma once


#include <windows.h>


class CTimer
{
	private:
		struct 
		{
			__int64			frequency;
			float			resolution;
			unsigned long	timer_start;
			unsigned long	timer_elapsed;
			bool			performance_timer;
			__int64			ptimer_start;
			__int64			ptimer_elapsed;
		} _timer;

		
		float		_startTime;
		float		_currentTime;

		bool		_isPerformance;

	public:
		CTimer(void);

		float GetTime(void);
		
		void Start();
		float Get() const;
		void Stop();
		void Reset();
};